home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19941031-19941221 / 000089_news@columbia.edu_Tue Nov 8 17:00:25 1994.msg < prev    next >
Internet Message Format  |  1995-07-31  |  4KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA12617
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 9 Nov 1994 07:56:57 -0500
  3. Received: by apakabar.cc.columbia.edu id AA09992
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 9 Nov 1994 07:56:56 -0500
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!usc!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
  6. From: jrd@cc.usu.edu (Joe Doupnik)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: C-Kermit vs MS-Kermit
  9. Message-Id: <1994Nov8.230025.32339@cc.usu.edu>
  10. Date: 8 Nov 94 23:00:25 MDT
  11. References: <Pine.SUN.3.90.941106143639.22421D-100000@blue> <39mf2a$lpf@apakabar.cc.columbia.edu> <jhurwitCyxuD9.FGy@netcom.com> <39omj0$ocs@news.halcyon.com>
  12. Organization: Utah State University
  13. Lines: 50
  14. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <39omj0$ocs@news.halcyon.com>, ken@coho.halcyon.com (Ken Pizzini) writes:
  17. > (Sorry for continuing this thread in cpkm...)
  18. > In article <jhurwitCyxuD9.FGy@netcom.com>,
  19. > Jeffrey Hurwit <jhurwit@netcom.com> wrote:
  20. >>In article <39mf2a$lpf@apakabar.cc.columbia.edu>, 
  21. >>Frank da Cruz (fdc@fdc.cc.columbia.edu) wrote:
  22. >>
  23. >>>Although it might be unfashionable these days, there still is quite
  24. >>>a lot to be said for assembly language, especially when memory and
  25. >>>addressability are at a premium.
  26. >>
  27. >>    Oh, I wouldn't say that (unfashionable, that is).  Shareware
  28. >>    authors often advertise the fact if they wrote their programs in
  29. >>    assembly, and sometimes go on to point out the advantages:  A
  30. >>    program that's small and fast.  There's no compiler in the world
  31. >>    that can optimize like a knowledgeable programmer.  IMHO, well-
  32. >>    written assembly is definitely a feature that savvy users look for.
  33. > The problem with assembly is that complicated-but-faster algorithms
  34. > are less likely to be used, and it is much more likely that arbritrary
  35. > limits on data sizes will be introduced in order to simplify programming.
  36. > Also modern compilers will do a better job of optimizing than a
  37. > mediocre programmer, in most cases.  In the optimize-for-speed relm it
  38. > is much more fruitful to program in a high-level-language, profile the
  39. > resulting program, and hand-code only the routines thus determined to
  40. > be critical.
  41. > Then again, modern compilers are usually built to optimize for speed,
  42. > not space.  If memory is tight hand-coded assembly still has an edge.
  43. > If nothing else it will encourage the programmer to leave out some
  44. > unnecessary bells and whistles.
  45. ------------
  46.     May I end this thread as a person with some experience in both
  47. assembler and C?
  48.     There is no way C can beat decent assembler. All those push/pops
  49. and stack references (that's touching real memory folks) kill performance.
  50. Programs beyond the hobbyist level aren't designed and written by undoing
  51. C code to assembler; far from it. They are designed differently from the 
  52. ground up.
  53.     I doubt many readers here have any idea of what is involved using
  54. C without all the helpful crutches provided by the compiler vendor. Remove
  55. the startup routines, and the run time libraries, and mix in near and far
  56. code and data, add interrupt routines. That will do for openers. It's not
  57. at all like programming "Hello World\n". Yet this occurs in MS-DOS Kermit
  58. which is 80% assembler and which uses C for the TCP/IP stack, and that's
  59. run partly at interrupt level and never as a "main" program. There is 
  60. no main() nor any vendor libraries etc. And I wish your last phrase were
  61. true, sigh.
  62.     Joe D.